home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 15516 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  854 b 

  1. Path: news.nask.org.pl!usenet
  2. From: flssoft@blue.maloka.waw.pl (Grzegorz (FLS))
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: MSVC++ linking trouble
  5. Date: Sat, 06 Apr 1996 16:02:20 GMT
  6. Organization: Research and Academic Computer Network
  7. Message-ID: <4k60qt$iuu@bilbo.nask.org.pl>
  8. References: <4k3c49$gi4@jupiter.planet.net>
  9. NNTP-Posting-Host: s113.maloka.waw.pl
  10. X-Newsreader: Forte Free Agent v0.46
  11.  
  12. ajs@planet.net (A.J. Saveriano) wrote:
  13.  
  14. >#include <stdlib.h>
  15. >system(char *); // prototype the function
  16. >void main( void )
  17. >{
  18. >   system( "dir" );
  19. >}
  20.  
  21. Hi,
  22.  
  23. Just remove your own prototype declaration. It covers an original by
  24. overloding. Note that an original <system()> function needs a const
  25. char* argument not a char*
  26.  
  27. Regards,
  28. Grzegorz
  29.  
  30.  
  31. Grzegorz
  32.  
  33. ``````````````````````````` Grzes vel Pysiak
  34. Ablue, pecte canem, canis est et permanet idem.
  35. Desunt cetera!
  36.  
  37.